// modulesA和modulesB的区别就是有无namespaced这个属性
const moduleA = {
  namespaced: true,
  state: {
    isVip1: false
  },
  mutations: {
    UPDATE_TO_VIP1: (state, payload) => {
      state.isVip1 = !state.isVip1
    }
  },
  // 可以有异步
  actions: {
    changeVip1({ state, commit, rootState }) {
      commit('UPDATE_TO_VIP1')
    }
  },
  getters: {}
}
export default moduleA
